package com.logistics.rcs.entity.model;

import com.logistics.rcs.entity.domain.RcsCoordinate;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class RcsCoordinateRow {

    private BigDecimal x;

    private BigDecimal y;

    private String point;

    public RcsCoordinateRow(){}

    public RcsCoordinateRow(RcsCoordinate rcsCoordinate){
        this.x = rcsCoordinate.getX();
        this.y = rcsCoordinate.getY();
        this.point = rcsCoordinate.getPoint();
    }

    public static RcsCoordinateRow build(RcsCoordinate coordinate){
        return new RcsCoordinateRow(coordinate);
    }
}
